﻿

        //初始化上传插件
        window.onload = function () {
            var swfu;
            var swfu2;
            try{
            swfu = new SWFUpload({
                
                upload_url: "js/swfupload/imgupload.aspx",
                post_params: { "ASPSESSID": "<%=Session.SessionID %>", "mode": "img1" },
                
                file_size_limit: "50 MB",
                file_types: "*.jpg; *.jgep;*.png;*.gif;",
                file_types_description: "图片",
                file_upload_limit: "0",  

                file_queue_error_handler: fileQueueError,
                file_dialog_complete_handler: fileDialogComplete,
                upload_progress_handler: uploadProgress,
                upload_error_handler: uploadError,
                upload_success_handler: uploadSuccess,
                upload_complete_handler: uploadComplete,
                
                button_image_url: "img/jia.png",
                button_placeholder_id: "spanupload",
                button_width: 72,
                button_height: 65,
                button_text: '',
                button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
              
                flash_url: "js/swfupload/Content/js/swfupload.swf", // Relative to this file
                debug: false
            });
            }
        catch (e) { }
            try{
            swfu2 = new SWFUpload({
                // Backend Settings
                upload_url: "js/swfupload/imgupload.aspx",
                post_params: { "ASPSESSID": "<%=Session.SessionID %>", "mode": "img2" },
                file_size_limit: "50 MB",
                file_types: "*.jpg; *.jgep;*.png;*.gif;",
                file_types_description: "图片",
                file_upload_limit: "0",
                file_queue_error_handler: fileQueueError,
                file_dialog_complete_handler: fileDialogComplete,
                upload_progress_handler: uploadProgress,
                upload_error_handler: uploadError,
                upload_success_handler: uploadSuccess2,
                upload_complete_handler: uploadComplete,
                button_image_url: "img/jia.png",
                button_placeholder_id: "spanupload2",
                button_width: 72,
                button_height: 65,
                button_text: '',
                button_text_style: '.button { font-family: Helvetica, Arial, sans-serif; font-size: 14pt; } .buttonSmall { font-size: 10pt; }',
                button_text_top_padding: 1,
                button_text_left_padding: 3,
                flash_url: "js/swfupload/Content/js/swfupload.swf",
                debug: false
            });
            }
            catch(e){}
        }
